package org.zjsru.order.service;

import org.springframework.stereotype.Component;
import org.zjsru.order.pojo.User;
import java.util.HashMap;
import java.util.Map;

/**
 * 用户服务Feign降级处理
 */
@Component
public class UserServiceFeignFallback implements UserServiceFeign {

    @Override
    public User findById(Long id) {
        return null;
    }

    @Override
    public Map<String, Object> checkUserStatus(Long id) {
        Map<String, Object> result = new HashMap<>();
        result.put("success", false);
        result.put("status", false);
        result.put("message", "服务降级：用户服务暂不可用");
        return result;
    }
} 